#include "MenuElements.h"
#include "Game.h"

StartButton::StartButton(const sf::Vector2i& upperLeft, const sf::Vector2i& bottomRight): ClickableArea(upperLeft, bottomRight)
{    
	texture.loadFromFile("Assets/startbutton.jpg");

	sprite.setTexture(texture);
    sprite.setPosition(sf::Vector2f(upperLeft.x,upperLeft.y));
}

void StartButton::onClick(sf::RenderWindow& window)
{
	Game game (&window);
	game.start();
}